<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增电池模组型号')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-model-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">模块型号名称：</label>
            <div class="col-sm-8">
                <input name="moduleModelName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">模块型号编号：</label>
            <div class="col-sm-8">
                <input name="moduleModelId" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">外型：</label>
            <div class="col-sm-8">
                <input name="appearance" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">尺寸：</label>
            <div class="col-sm-8">
                <input name="size" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">额定容量：</label>
            <div class="col-sm-8">
                <input name="ratedCapacity" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">标准电压：</label>
            <div class="col-sm-8">
                <input name="referenceVoltage" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">额定质量：</label>
            <div class="col-sm-8">
                <input name="maxGrossMass" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">能量密度：</label>
            <div class="col-sm-8">
                <input name="energyDensity" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">充电倍率：</label>
            <div class="col-sm-8">
                <input name="theChargingRatio" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">电池寿命：</label>
            <div class="col-sm-8">
                <input name="batteryLife" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">生产厂商：</label>
            <div class="col-sm-8">
                <input name="manufacturer" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "cpart/battery"
    $("#form-model-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/addmodel", $('#form-model-add').serialize());
        }
    }
</script>
</body>
</html>